package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.db.domain.system.PcClientReturnRecord;
import com.ruoyi.db.mapper.system.PcClientReturnRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.service.IPcClientReturnRecordService;

import javax.transaction.Transactional;

/**
 * 用户定返活动返还银藻记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-05
 */
@Service
@Transactional(rollbackOn = Exception.class)
public class PcClientReturnRecordServiceImpl implements IPcClientReturnRecordService 
{
    @Autowired
    private PcClientReturnRecordMapper pcClientReturnRecordMapper;

    /**
     * 查询用户定返活动返还银藻记录
     * 
     * @param id 用户定返活动返还银藻记录主键
     * @return 用户定返活动返还银藻记录
     */
    @Override
    public PcClientReturnRecord selectPcClientReturnRecordById(Long id)
    {
        return pcClientReturnRecordMapper.selectPcClientReturnRecordById(id);
    }

    /**
     * 查询用户定返活动返还银藻记录列表
     * 
     * @param pcClientReturnRecord 用户定返活动返还银藻记录
     * @return 用户定返活动返还银藻记录
     */
    @Override
    public List<PcClientReturnRecord> selectPcClientReturnRecordList(PcClientReturnRecord pcClientReturnRecord)
    {
        return pcClientReturnRecordMapper.selectPcClientReturnRecordList(pcClientReturnRecord);
    }

    /**
     * 新增用户定返活动返还银藻记录
     * 
     * @param pcClientReturnRecord 用户定返活动返还银藻记录
     * @return 结果
     */
    @Override
    public int insertPcClientReturnRecord(PcClientReturnRecord pcClientReturnRecord)
    {
        return pcClientReturnRecordMapper.insertPcClientReturnRecord(pcClientReturnRecord);
    }

    /**
     * 修改用户定返活动返还银藻记录
     * 
     * @param pcClientReturnRecord 用户定返活动返还银藻记录
     * @return 结果
     */
    @Override
    public int updatePcClientReturnRecord(PcClientReturnRecord pcClientReturnRecord)
    {
        return pcClientReturnRecordMapper.updatePcClientReturnRecord(pcClientReturnRecord);
    }

    /**
     * 批量删除用户定返活动返还银藻记录
     * 
     * @param ids 需要删除的用户定返活动返还银藻记录主键
     * @return 结果
     */
    @Override
    public int deletePcClientReturnRecordByIds(Long[] ids)
    {
        return pcClientReturnRecordMapper.deletePcClientReturnRecordByIds(ids);
    }

    /**
     * 删除用户定返活动返还银藻记录信息
     * 
     * @param id 用户定返活动返还银藻记录主键
     * @return 结果
     */
    @Override
    public int deletePcClientReturnRecordById(Long id)
    {
        return pcClientReturnRecordMapper.deletePcClientReturnRecordById(id);
    }
}
